/* SPDX-License-Identifier: GPL-2.0+ */
/*
 * Copyright ASPEED Technology Inc.
 */
#ifndef __AST2600_I2C_GLOBAL_H_
#define __AST2600_I2C_GLOBAL_H_

#define AST2600_I2CG_ISR			0x00
#define AST2600_I2CG_SLAVE_ISR		0x04
#define AST2600_I2CG_OWNER		    0x08
#define AST2600_I2CG_CTRL		    0x0C
#define AST2600_I2CG_CLK_DIV_CTRL	0x10

#define AST2600_I2CG_SLAVE_PKT_NAK	    BIT(4)
#define AST2600_I2CG_M_S_SEPARATE_INTR	BIT(3)
#define AST2600_I2CG_CTRL_NEW_REG	    BIT(2)
#define AST2600_I2CG_CTRL_NEW_CLK_DIV	BIT(1)

#define AST2600_GLOBAL_INIT					\
			(AST2600_I2CG_SLAVE_PKT_NAK |	\
			AST2600_I2CG_CTRL_NEW_REG |		\
			AST2600_I2CG_CTRL_NEW_CLK_DIV)
#define I2CCG_DIV_CTRL 0xC6411208

#endif				/* __AST2600_I2C_GLOBAL_H_ */
